package cn.ac.cintcm.prespring.cluster;

import java.util.List;

/**
 * 存贮相似度计算结果
 * @author 何前锋 Franklin He(franklinheqf@gmail.com)
 *
 */
public class Similarity {
    /**
     * 计算相似度的参考元素编号
     */
    private String id;
    /**
     * 相似度
     */
    private float ratio;
    /**
     * 计算所得相似度的结果元素
     */
    private List<Integer> similarElements;
    /**
     * 计算所花费的时间
     */
    private long time;
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public List<Integer> getSimilarElements() {
        return similarElements;
    }
    public void setSimilarElements(List<Integer> similarElements) {
        this.similarElements = similarElements;
    }
    public long getTime() {
        return time;
    }
    public void setTime(long time) {
        this.time = time;
    }
    public float getRatio() {
        return ratio;
    }
    public void setRatio(float ratio) {
        this.ratio = ratio;
    }
}
